package com.htfyun.unisound.serialmotor;

import android.support.v4.app.Fragment;

import com.htfyun.unisound.serialmotor.fragment.*;

/**
 * Created by sst on 2018/7/11.
 */

public enum FragmentItemsEnum {
    position(R.string.motor_test_position, TestPositionFragment.class),
//    torque(R.string.motor_test_torque, TestTorqueFragment.class),
//    infinite_mode(R.string.motor_test_infinite_mode, TestInfiniteModeFragment.class),
//    breathe_led(R.string.breathe_led_tips, TestBreatheLedFragment.class),
    ;
    private final int nameResId;
    private final Class<? extends Fragment> fragmentClass;

    FragmentItemsEnum(int nameResId, Class<? extends Fragment> cls) {
        this.nameResId = nameResId;
        this.fragmentClass = cls;
    }

    public int getNameResId() {
        return nameResId;
    }

    public Class<? extends Fragment> getFragmentClass() {
        return fragmentClass;
    }
}
